﻿using IdentityServer.Domain.IRepositories;

namespace IdentityServer.Domain.IServices
{
    public interface IEmailClient
    {
        IEmailRepository EmailRepository { get; }

        /// <summary>
        /// 发送邮件
        /// </summary>
        /// <param name="receive">收件人</param>
        /// <param name="subject">标题</param>
        /// <param name="body">内容</param>
        /// <returns></returns>
        Task<bool> SendEmail(string email, string code, string subject, string body);
    }
}
